/**
 * 汪孟苹
 */
define([],function(){
    var tpl = {};

    tpl.patients = function () {
        return patients();
    }
    tpl.info = function () {
        return info();
    }

    //搜索框模板
    var patients = function(){
       return   '<script id="growthAdd_patients" type="text/html">' +
                '   {{each list as value}}'+
                '       <li userId="{{value.userId}}" phoneNo="{{value.phoneNo}}"><span class="userName">{{value.userName}}</span>&nbsp;&nbsp;'+
                '           {{if value.gender=="F"}}' +
                '               <span class="sex">女&nbsp;&nbsp;</span>'+
                '           {{else}}'+
                '           <span class="sex">男&nbsp;&nbsp;</span>'+
                '           {{/if}}'+
                '           <span class="age">&nbsp;&nbsp;{{value.age}}</span>'+
                '           <span class="pregnancyWeek">&nbsp;&nbsp;{{value.pregnancyWeek}}</span>'+
                '           <span class="followQueueName">&nbsp;&nbsp;{{value.queueName}}</span>'+
                '       </li>'+
                '   {{/each}}'+
                '</script>';
    }
    var info = function () {
        return '<script id="growthAdd_info" type="text/html">' +
                '   <p><i class="fa fa-user" aria-hidden="true"></i><span class="userName">{{userName}}</span></p>'+
                '   <p>性别：<span class="val">{{if gender=="F"}}女{{else}}男{{/if}}</span></p>'+
                '   <p>年龄：<span class="val">{{age}}</span></p>'+
                '   <p>孕周：<span class="val">{{pregnancyWeek}}</span></p>'+
                '   <p>队列：<span class="val">{{queueName}}</span></p>'+
                '   <p>手机号：<span class="val">{{phoneNo}}</span></p>'+
                '</script>';
    }

    return tpl;
});
